package com.guan.ordering_sys.generator.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.guan.ordering_sys.generator.entity.GoodsType;
import com.guan.ordering_sys.vo.GoodsTypeVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 关远键
 * @since 2021-06-18
 */
@Repository
public interface GoodsTypeMapper extends BaseMapper<GoodsType> {

    GoodsTypeVo findByName(@Param("name") String name);

    List<GoodsTypeVo> queryAll();

}
